"use strict";
//联合类型
{
    var myFavoriteNumber_1;
    myFavoriteNumber_1 = 4;
    myFavoriteNumber_1 = "aa";
}
function getString(something) {
    return something.toString();
}
console.log(getString(123));
console.log(123);
// 联合类型的变量在被赋值的时候，会根据类型推论的规则推断出一个类型：
var num1;
num1 = "xxx";
num1 = 22;
console.log(num1.length);
